﻿using System.Windows;
using System.Windows.Controls;

namespace Red.Launcher.Menus.Workspaces.Admin
{
    public partial class RecordDetailView : UserControl
    {
        #region C-Tor

        public RecordDetailView()
        {
            InitializeComponent();
        }

        #endregion C-Tor

        #region Public Properties

        public string RecordName
        {
            get { return (string)GetValue( RecordNameProperty ); }
            set { SetValue( RecordNameProperty, value ); }
        }

        public bool IsRecordNameReadOnly
        {
            get { return (bool)GetValue( IsRecordNameReadOnlyProperty ); }
            set { SetValue( IsRecordNameReadOnlyProperty, value ); }
        }

        public object PropertiesContent
        {
            get { return (object)GetValue( PropertiesContentProperty ); }
            set { SetValue( PropertiesContentProperty, value ); }
        }

        public object ChildrenContent
        {
            get { return (object)GetValue( ChildrenContentProperty ); }
            set { SetValue( ChildrenContentProperty, value ); }
        }

        #endregion Public Properties

        #region Private Dependency Properties

        private static readonly DependencyProperty RecordNameProperty =
        DependencyProperty.Register
        (
            "RecordName",
            typeof( string ),
            typeof( RecordDetailView )
        );

        private static readonly DependencyProperty IsRecordNameReadOnlyProperty =
        DependencyProperty.Register
        (
            "IsRecordNameReadOnly",
            typeof( bool ),
            typeof( RecordDetailView )
        );

        private static readonly DependencyProperty PropertiesContentProperty =
        DependencyProperty.Register
        (
            "PropertiesContent",
            typeof( object ),
            typeof( RecordDetailView )
        );

        private static readonly DependencyProperty ChildrenContentProperty =
        DependencyProperty.Register
        (
            "ChildrenContent",
            typeof( object ),
            typeof( RecordDetailView )
        );

        #endregion Private Dependency Properties
    }
}
